package org.example.demo.service.impl;

import lombok.Getter;
import lombok.Setter;
import org.example.demo.service.CommonServicce;
import org.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 *
 * @Author maduar maduar@163.com
 * @Date 2021-12-30 21:35
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private CommonServicce commonServicce;

    @Override
    public String getName(String name) {
        return add00(name);
    }

    public String add00(String name) {
        return "00" + toLower(name);
    }

    @Override
    public String toLower(String name) {
        return null;
    }

    @Override
    public String getUpper(String name) {
        return add11(name);
    }

    public String add11(String name) {
        return "11" + commonServicce.toUpper(name);
    }
}
